const wrapper = require('../utils/responsePageWrapper');


const parentId = '1';
const lists = [];
if (parentId.length < 7) {
  for (let i = 1; i < 5; i++) {
    const key = `${parentId}-${i}`;
    lists.push({
      id: key,
      name: `表单类型${key}`,
      columns: [
        { fieldName: 'name', fieldLabel: '名称' },
        { fieldName: 'field1', fieldLabel: '列1' },
        { fieldName: 'field2', fieldLabel: '列2' },
        { fieldName: 'field3', fieldLabel: '列3', options: [{ key: '1', value: '选项一' }, { key: '2', value: '选项二' }] },
      ],
      sortColumns: [
        { fieldName: 'name', fieldLabel: '名称' },
        { fieldName: 'field1', fieldLabel: '列1' },
      ],
    });
  }
}

module.exports = wrapper(lists);
